$OpenBSD: patch-src_ck-manager_c,v 1.9 2017/02/06 08:15:02 ajacoutot Exp $

From 6dcb5b04ecca9fcdb13b518924f6835909038b1c Mon Sep 17 00:00:00 2001
From: Antoine Jacoutot <ajacoutot@openbsd.org>
Date: Wed, 25 Jan 2017 04:26:43 +0100
Subject: [PATCH] Add a few more display manager users.

--- src/ck-manager.c.orig	Wed Jan 25 04:14:39 2017
+++ src/ck-manager.c	Wed Jan 25 04:15:58 2017
@@ -1112,9 +1112,12 @@ session_is_real_user (CkSession *session,
         username = get_user_name (uid);
 
         /* filter out GDM/SDDM/KDM user */
-        if (g_strcmp0 (username, "gdm")  == 0 ||
-            g_strcmp0 (username, "sddm") == 0 ||
-            g_strcmp0 (username, "kdm") == 0) {
+        if (g_strcmp0 (username, "gdm")   == 0 ||
+            g_strcmp0 (username, "_gdm")  == 0 ||
+            g_strcmp0 (username, "sddm")  == 0 ||
+            g_strcmp0 (username, "_sddm") == 0 ||
+            g_strcmp0 (username, "kdm")   == 0 ||
+            g_strcmp0 (username, "_kdm")  == 0) {
                 ret = FALSE;
                 goto out;
         }
